From 61dd8f92b8764042fa7970c7ac55120a38533561 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sun, 18 Jun 2017 12:46:30 +0200 Subject: [PATCH] calendar: Remove style properties Hardcode the default values until someone comes and fixes the actual widget. --- gtk/gtkcalendar.c | 59 +++-------------------------------------------- 1 file changed, 3 insertions(+), 56 deletions(-) diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 7c0e733da4..a5827e960a 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -540,42 +540,6 @@ gtk_calendar_class_init (GtkCalendarClass *class) GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY)); - /** - * GtkCalendar:inner-border: - * - * The spacing around the day/week headers and main area. - */ - gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("inner-border", - P_("Inner border"), - P_("Inner border space"), - 0, G_MAXINT, 4, - GTK_PARAM_READABLE)); - - /** - * GtkCalndar:vertical-separation: - * - * Separation between day headers and main area. - */ - gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("vertical-separation", - P_("Vertical separation"), - P_("Space between day headers and main area"), - 0, G_MAXINT, 4, - GTK_PARAM_READABLE)); - - /** - * GtkCalendar:horizontal-separation: - * - * Separation between week headers and main area. - */ - gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("horizontal-separation", - P_("Horizontal separation"), - P_("Space between week headers and main area"), - 0, G_MAXINT, 4, - GTK_PARAM_READABLE)); - /** * GtkCalendar::month-changed: * @calendar: the object which received the signal. @@ -1582,37 +1546,20 @@ calendar_unrealize_arrows (GtkCalendar *calendar) static gint calendar_get_inner_border (GtkCalendar *calendar) { - gint inner_border; - - gtk_widget_style_get (GTK_WIDGET (calendar), - "inner-border", &inner_border, - NULL); - - return inner_border; + return 4; } static gint calendar_get_xsep (GtkCalendar *calendar) { - gint xsep; - - gtk_widget_style_get (GTK_WIDGET (calendar), - "horizontal-separation", &xsep, - NULL); - - return xsep; + return 4; } static gint calendar_get_ysep (GtkCalendar *calendar) { - gint ysep; - - gtk_widget_style_get (GTK_WIDGET (calendar), - "vertical-separation", &ysep, - NULL); - return ysep; + return 4; } static void -- 2.30.2